#pragma once
#include "CriticalSection.h"

namespace Lumin {
namespace Win32 {

class CConnMgr : public CSingleton<CConnMgr>
{
public:
	CConnMgr(void);
	~CConnMgr(void);
	void Add(IConnection* pConnection);
	void Remove(IConnection* pConnection);
	int GetCount();
	void Shutdown();
private:
	map<IConnection*,DWORD> m_mapConnection;
	CCriticalSection m_criticalSection;
};

}
}